package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 shopping_cart
 * 
 * @author ruoyi
 * @date 2025-02-16
 */
public class ShoppingCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long cartItemId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 鲜花编号 */
    @Excel(name = "鲜花编号")
    private Long flowerId;

    /** 鲜花数量 */
    @Excel(name = "鲜花数量")
    private Long quantity;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setCartItemId(Long cartItemId) 
    {
        this.cartItemId = cartItemId;
    }

    public Long getCartItemId() 
    {
        return cartItemId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFlowerId(Long flowerId) 
    {
        this.flowerId = flowerId;
    }

    public Long getFlowerId() 
    {
        return flowerId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartItemId", getCartItemId())
            .append("userId", getUserId())
            .append("flowerId", getFlowerId())
            .append("quantity", getQuantity())
            .append("addTime", getAddTime())
            .toString();
    }
}
